package com.coffee.admin.api.merchant.service;

import com.coffee.admin.api.merchant.query.ConfigureQuery;
import com.coffee.admin.api.merchant.result.ConfigureResult;
import com.coffee.core.entity.Page;
import com.coffee.core.entity.PagerInfo;
import com.coffee.core.exception.BusinessException;

import java.util.List;
import java.util.Map;
import java.util.Set;


public interface ConfigureService {

	Page<ConfigureResult> getPager(ConfigureQuery param, PagerInfo pr);
	
	Integer count(ConfigureQuery param);
	
	ConfigureResult getDetail(Integer id);
	
	List<ConfigureResult> getList(ConfigureQuery param, PagerInfo pr);
	
	List<ConfigureResult> getList(ConfigureQuery param);
	
	List<ConfigureResult> getList();

	void delete(Integer id);

	void addOrUpdate(ConfigureResult result)throws BusinessException;
	
	Map<Integer, ConfigureResult> getItemMap(Set<Integer> idSet);
	
	Map<Integer, ConfigureResult> getItemMap();

	Map<String, List<ConfigureResult>> getItemMapList();

}